import request from '@/utils/request'

export function create(data) {
  return request({
    url: '/admin/major-category/create',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/admin/major-category/edit',
    method: 'post',
    data
  })
}

export function getDetail(data) {
  return request({
    url: '/admin/major-category/detail',
    method: 'post',
    data
  })
}

export function getFirst() {
  return request({
    url: '/admin/major-category/first',
    method: 'post'
  })
}

export function getSecond() {
  return request({
    url: '/admin/major-category/second',
    method: 'post'
  })
}

export function getList() {
  return request({
    url: '/admin/major-category/list',
    method: 'post'
  })
}

export function del(data) {
  return request({
    url: '/admin/major-category/del',
    method: 'post',
    data
  })
}
